import http from '@/utils/http2'


/**
 * 查询物料(产品)
 * @param {*} params 
 * @returns 
 */
export function queryDetail(params) {
  return http.post('/api/queryDetail', params)
}
/**
 * 查询物料(产品)
 * @param {*} params 
 * @returns 
 */
export function query(params) {
  return http.post('/api/query', params)
}
/**
 * 入库操作
 * @param {*} params 
 * @returns 
 */
export function insert(params) {
  return http.post('/api/stockIn/add', params)
}
/**
 * 删除指定入库详情
 * @param {*} id 
 * @returns 
 */
export function deleteById(id) {
  return http.put(`/api/stockIn/deletePurchase?id=${id}`)
}